package online.afeibaili.storebackendframework.model

import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.Id
import jakarta.persistence.Table


/**
 * 地址表
 *
 *@author AfeiBaili
 *@version 2025/11/12 21:14
 */

@Entity
@Table(name = "address")
class AddressEntity() {
    @Id
    var accountId: String = ""
    var name: String = ""
    var tel: String = ""
    var province: String = ""
    var city: String = ""
    var county: String = ""
    var addressDetail: String = ""

    constructor(
        accountId: String,
        name: String,
        tel: String,
        province: String,
        city: String,
        county: String,
        addressDetail: String,
    ) : this() {
        this.accountId = accountId
        this.name = name
        this.tel = tel
        this.province = province
        this.city = city
        this.county = county
        this.addressDetail = addressDetail
    }
}